gcc-15
authorSamuel Thibault <sthibault@debian.org>
Wed, 2 Apr 2025 18:01:07 +0000 (20:01 +0200)
committerSamuel Thibault <sthibault@debian.org>
Wed, 2 Apr 2025 18:01:07 +0000 (20:01 +0200)
commit d84ec987d14c0e387d8e9fcd97171b0e7bd65f5b
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Dec 21 10:05:03 2024 +0100

    Fix missing function parameters

    (cherry picked from commit a6224ae7ba4016e2dc2adf57ef07d0befd27ef92)

Gbp-Pq: Name gcc-15

mpi/src/load_balancer/policy/load_balancer_policy.h
mpi/src/load_balancer/policy/load_heat_propagation.c
mpi/src/starpu_mpi_cache.c
mpi/src/starpu_mpi_cache.h
mpi/src/starpu_mpi_init.c
socl/src/cl_enqueuendrangekernel.c
socl/src/task.c
socl/src/task.h
src/drivers/tcpip/driver_tcpip_common.c
src/profiling/callbacks.c

index 8dbdac18aab43e01b99cf89989cf3f0e17b92b61..f502f617648d63f702156f6a0c011c46ac4fdab7 100644 (file)
@@ -35,8 +35,8 @@ struct load_balancer_policy
 {
        int (*init)(struct starpu_mpi_lb_conf *);
        int (*deinit)();
-       void (*submitted_task_entry_point)();
-       void (*finished_task_entry_point)();
+       void (*submitted_task_entry_point)(struct starpu_task *task);
+       void (*finished_task_entry_point)(void);
 
        /** Name of the load balancing policy. The selection of the load balancer is
         * performed through the use of the STARPU_MPI_LB=name environment
index 91686bfa5c02903da3a43e1bcd9a55057449c567..64ac4f48bba86f89b62cc4f8f8c1c54a72e6d8c3 100644 (file)
@@ -401,7 +401,7 @@ static void submitted_task_heat(struct starpu_task *task)
        }
 }
 
-static void finished_task_heat()
+static void finished_task_heat(void)
 {
        //fprintf(stderr,"Try to decrement nsubmitted_tasks...");
        STARPU_PTHREAD_MUTEX_LOCK(&load_data_mutex);
index d2862806b6076122e0c06354a2837bba87d51081..d1d48dd685b78144734b829ec58bbaff62900334 100644 (file)
@@ -82,7 +82,7 @@ void _starpu_mpi_cache_init(MPI_Comm comm)
        STARPU_PTHREAD_MUTEX_INIT(&_cache_mutex, NULL);
 }
 
-void _starpu_mpi_cache_shutdown()
+void _starpu_mpi_cache_shutdown(void)
 {
        if (_starpu_cache_enabled == 0)
                return;
index f2cd967f6bcbebacab7cae298cc3b2ee5b1c283a..7c2fa2ab706f0da81c1fef47099e816f5e333265 100644 (file)
@@ -30,7 +30,7 @@ extern "C"
 
 extern int _starpu_cache_enabled;
 void _starpu_mpi_cache_init(MPI_Comm comm);
-void _starpu_mpi_cache_shutdown();
+void _starpu_mpi_cache_shutdown(void);
 void _starpu_mpi_cache_data_init(starpu_data_handle_t data_handle);
 void _starpu_mpi_cache_data_clear(starpu_data_handle_t data_handle);
 
index 81d4c04595d502a6bb69f01c31ef39e758854a74..ca145fe4745c853ab36c084ac872960816cf5cef 100644 (file)
@@ -358,7 +358,7 @@ int starpu_mpi_shutdown_comm(MPI_Comm comm)
 
        _starpu_mpi_comm_amounts_display(stderr, rank);
        _starpu_mpi_comm_amounts_shutdown();
-       _starpu_mpi_cache_shutdown(world_size);
+       _starpu_mpi_cache_shutdown();
 
        _mpi_backend._starpu_mpi_backend_shutdown();
 
index 9a5d137a0c34e2803b9f37b7d5f4fced713423a5..783186833f1ef7d265ff6e15bbbe7655f674a2ba 100644 (file)
@@ -96,7 +96,7 @@ void soclEnqueueNDRangeKernel_task(void *descr[], void *args)
  */
 cl_int command_ndrange_kernel_submit(command_ndrange_kernel cmd)
 {
-       starpu_task task = task_create();
+       starpu_task task = task_create(CL_COMMAND_NDRANGE_KERNEL);
        task->cl = &cmd->codelet;
        task->cl->model = cmd->kernel->perfmodel;
        task->cl_arg = cmd;
index 97f94dfd6b6a4f79b90821d3c3ea9036478b736e..81ef6ca738d757ddb40e2d5eff985d8a04d619e4 100644 (file)
@@ -51,7 +51,7 @@ void command_completed_task_callback(void *arg)
 /*
  * Create a StarPU task
  */
-starpu_task task_create()
+starpu_task task_create(cl_command_type typ)
 {
        struct starpu_task * task;
 
@@ -163,7 +163,7 @@ void cpu_task_submit_ex(cl_command cmd, void (*callback)(void*), void *arg, int
 
        codelet->where = STARPU_OPENCL | STARPU_CPU | STARPU_CUDA;
 
-       starpu_task task = task_create();
+       starpu_task task = task_create(CL_COMMAND_TASK);
        if (num_events != 0)
        {
                task_depends_on(task, num_events, events);
index 078cc4be466cbbcda4ed5069ab90484799af7c23..37ff1c96727c7a431d2712f014d99e82c64813fe 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "socl.h"
 
-starpu_task task_create() STARPU_ATTRIBUTE_MALLOC;
+starpu_task task_create(cl_command_type typ) STARPU_ATTRIBUTE_MALLOC;
 void task_dependency_add(starpu_task task, cl_uint num_events, cl_event *events);
 void command_completed(cl_command cmd);
 
index aae58e12a063c3875b376594fa97d6b3ab46a364..3240fa21bbdb18b16308b687c418da7bb85a170b 100644 (file)
@@ -155,7 +155,7 @@ struct _starpu_tcpip_req_pending
 };
 
 //function thread
-static void * _starpu_tcpip_thread_pending()
+static void * _starpu_tcpip_thread_pending(void *foo STARPU_ATTRIBUTE_UNUSED)
 {
        fd_set reads;
        fd_set writes;
index 48c8bb4dc19ab2bbcb13ad847a5bb1e86c1516a1..b4670d14b239114c7bf6d3311d4352d4bb051e67 100644 (file)
@@ -36,7 +36,7 @@ static void *lib_handle=NULL;
 /**
    Dummy implementations of the callbacks
 */
-void _starpu_prof_tool_event_dummy_func()
+static void _starpu_prof_tool_event_dummy_func(struct starpu_prof_tool_info *pti, union starpu_prof_tool_event_info *ptei, struct starpu_prof_tool_api_info *ptai)
 {
 }